let liNodeList = document.querySelectorAll('li')

liNodeList.forEach(item=>{
  item.addEventListener('click',function(event){
    alert(event.target.textContent)
  })
})